<template>
  <div @click="showMyName">
    {{ msg }}
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: ["msg"],
  methods: {
    showMyName() {
      console.log(this.myName);
    },
  },
  setup(props) {
    const myName = "zesion Lee";
    return { myName };
  },
});
</script>

<style scoped>
</style>